<template>
	<view>
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				content:"",
				id:""
			}
		},
		onLoad(options) {
			if(options.id){
			  this.id=options.id
			}
			
			this.active()
		},
		methods:{
			active(){
			
				this.$u.post('/api/index/detail', {
					article_id:this.id
				}, {}).then(res => {
				 this.content=res.data.detail
					
				}).catch(err => {})
			}
		}
	}
</script>

<style>
</style>
